package de.se2.sharebox.classes;

/**
 *
 * @author Gruppe 10
 *
 */
public class UserAccount
{
	private String name;
	private String emailAddresse;
	private String password;
	private String language;
	private int limit = 0;

	public UserAccount()
	{
		this.limit = 1024 * 1024; // 1GB
		this.language = "de";
	}

	public UserAccount(String name, String email, String newPassword)
	{
		this();
		this.name = name;
		this.emailAddresse = email;
		this.password = newPassword;
	}

	public UserAccount(String email, String newPassword)
	{
		this();
		this.emailAddresse = email;
		this.password = newPassword;
	}

	public boolean checkAccount()
	{
		return false;

	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		Log.getInstance().addEntry("UserAccount", "Setting name " + name);
		this.name = name;
	}

	public String getEmailAdresse()
	{
		return emailAddresse;
	}

	public void setEmailAdresse(String emailAdresse)
	{
		Log.getInstance().addEntry("UserAccount", "Setting email " + emailAdresse);
		this.emailAddresse = emailAdresse;
	}

	public String getPasswort()
	{
		return password;
	}

	public void setPasswort(String password)
	{
		Log.getInstance().addEntry("UserAccount", "Setting password " + password);
		this.password = password;
	}

	public String getLanguage()
	{
		return language;
	}

	public void setLanguage(String language)
	{
		Log.getInstance().addEntry("UserAccount", "Setting language " + language);
		this.language = language;
	}

	public int getLimit()
	{
		return limit;
	}

	public void setLimit(int limit)
	{
		Log.getInstance().addEntry("UserAccount", "Setting limit " + limit);
		this.limit = limit;
	}

}
